<template>
  <div style="padding: 0 15px;" @click="toggleClick">
    <div class="pageFlexColumn pageSpaceCenter hamburger" :class="{'is-active':isActive}">
      <img src="@/assets/home/home_show.png" class="icon" />
    </div>
  </div>
</template>

<script setup>
import {defineEmits, defineProps} from 'vue'
defineProps({
  isActive: {
    type: Boolean,
    default: false
  }
})

const emit = defineEmits()
const toggleClick = () => {
  emit('toggleClick');
}
</script>

<style lang="scss" scoped>
@import "@/assets/styles/public.scss";
.hamburger {
  width: 100%;
  height: 100%;
  .icon{
    width: 20px;
    height: 20px;
    display: block;
  }
  &.is-active{
    transform: rotate(180deg);
  }
}
</style>
